package org.jeese.modules.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface SysUserRoleDao {

	List<Long> listUserRoleId(@Param("userId") Long userId);

	int batchDeleteByUserIds(@Param("userIds") String[] userIds);

	int batchDeleteByRoleIds(@Param("roleIds") String[] roleIds);

	int batchAddUserRole(@Param("userId") Long userId, @Param("roleIds") Long[] roleIds);

	int deleteByUserId(@Param("userId") Long userId);

	int deleteByRoleId(@Param("roleId") Long roleId);

}
